package com.dbz.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.dbz.entity.Journal;
import com.dbz.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface JournalDao extends BaseMapper<Journal> {
    /**
     * 分页查询
     * @param page
     * @param queryMapper
     * @return
     */
    public IPage<Journal> selectPage(IPage<Journal> page, @Param(Constants.WRAPPER) Wrapper<Journal> queryMapper);

    /**
     * 根据id删除日志
     * @param jid
     * @return
     */
    public int delecteJournal(String jid);

    /**
     * 登陆时添加日志信息
     * @param uname
     * @param url
     * @param scheme
     * @return
     */
    public int insertJournal(String uname,String url,String scheme);
}
